﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Net_SCADA.Forms
{

    public partial class fdBaseForm : Form
    {
        public int formLanguageIndex { get; set; } = 0;

        public fdBaseForm()
        {
            InitializeComponent();
        }

        private void fdBaseForm_Load(object sender, EventArgs e)
        {
            MultipleLanguage.switchLanguage(this);
            formLanguageIndex = MultipleLanguage.systemLanguageIndex;
        }

        private void fdBaseForm_Activated(object sender, EventArgs e)
        {
            if (formLanguageIndex != MultipleLanguage.systemLanguageIndex)
            {
                MultipleLanguage.switchLanguage(this);
            }
        }
    }
}
